package com.yanqu.road.entity.activity.wanyao.entity;

public class WanYaoBlockData {
    private int blockId;
    private int x;
    private int y;
    private int blockLevel;

    public int getBlockId() {
        return blockId;
    }

    public void setBlockId(int blockId) {
        this.blockId = blockId;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getBlockLevel() {
        return blockLevel;
    }

    public void setBlockLevel(int blockLevel) {
        this.blockLevel = blockLevel;
    }

    public String toString() {
        return "x: " + x + ", y: " + y + ", Level: " + blockLevel;
    }

    //复制出一个新的
    public WanYaoBlockData copy() {
        WanYaoBlockData data = new WanYaoBlockData();
        data.setBlockId(blockId);
        data.setX(x);
        data.setY(y);
        data.setBlockLevel(blockLevel);
        return data;
    }
}
